{% extends "base_generic.html" %}
{% block content %}
    <div id="primaryContentContainer">
      <div id="primaryContent">
        <h2>Welcome {{customuser.name}}!</h2>
        <blockquote>
        <strong>Clanty</strong> is a personal platform for supporting languages learning. It is a experimental project with non commercial idea.
        <br />Clanty is in continous evolution so the changes could produce an unestable behaviour.</p>
        </blockquote>
        <h3>Last terms added</h3>
        {% for term in terms %}
        {% if forloop.first %}
        <table>
          <tr class="rowH">
            <th>English</th>
            <th>Spanish</th>
            <th>Type</th>
          </tr>
        {% endif %}
          <tr class="{{forloop.counter|zebra}}">
            <td>{{term.prefix}}{{term.word}}</td>
            <td>{{term.translate}}</td>
            <td><a href="/vocabulary/{{term.termtype.url}}">{{term.termtype.name}}</a></td>
          </tr>
        {% if forloop.last %}
        </table>
        {% endif %}
        {% endfor %}
      </div>
    </div>
{% endblock %}
